package com.casstime.ec.cloud.service;

import java.util.List;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.casstime.ec.cloud.values.business.SupplierGarageBusiness;

/**
 * ClassName: DiscountService 
 * Function: (买赠促销)
 * Reason: ADD REASON(可选).
 *  
 * @author wu.chen 
 * 2018年2月26日 上午10:59:31
 * @version   
 * @since JDK 1.8
 */
@FeignClient("discount-service")
public interface SupplierGarageBusinessService {

	
	@RequestMapping(value = "/discount/business/insertBusinessRecord", method = RequestMethod.POST)
	int insertBusinessRecord(@RequestBody List<SupplierGarageBusiness> records) throws Exception;
	
	
	@RequestMapping(value = "/discount/business/findByGarageCompanyId", method = RequestMethod.GET)
	List<SupplierGarageBusiness> listSupplierGarageBusiness(@RequestParam("garageCompanyId") String garageCompanyId) throws Exception;
}
